<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="s" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Shamcey - Metro Style Admin Template</title>

		<link rel="stylesheet" href="${pageContext.request.contextPath}/css/style.default.css" type="text/css" />
		<link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap-fileupload.min.css" type="text/css" />
		<link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap-timepicker.min.css" type="text/css" />

		<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.9.1.min.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-migrate-1.1.1.min.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-ui-1.9.2.min.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/bootstrap-fileupload.min.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/bootstrap-timepicker.min.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.uniform.min.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.validate.min.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.tagsinput.min.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.autogrow-textarea.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/charCount.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/colorpicker.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/ui.spinner.min.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/chosen.jquery.min.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.cookie.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/modernizr.min.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/custom.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/forms.js"></script>
		<script type="text/javascript">
		    jQuery(document).ready(function(){
		        // dynamic table
		        jQuery('#dyntable').dataTable({
		            "sPaginationType": "full_numbers",
		            "aaSortingFixed": [[0,'asc']],
		            "fnDrawCallback": function(oSettings) {
		                jQuery.uniform.update();
		            }
		        });
		        
		        jQuery('#dyntable2').dataTable( {
		            "bScrollInfinite": true,
		            "bScrollCollapse": true,
		            "sScrollY": "300px"
		        });
		        
		    });
		</script>
	</head>
	<title>老师登陆成功</title>
<body>

<div class="mainwrapper">
    
    <div class="header">
        <div class="logo">
            <a href="teacher"><img src="/images/logo.png" alt="" /></a>
        </div>
        <div class="headerinner">
            <ul class="headmenu">
              
                <li class="right">
                    <div class="userloggedinfo">
                        <img src="/images/photos/thumb1.png" alt="" />
                        <div class="userinfo">
                            <h5>${sessionScope.teacherinfo.teacherID} <small>you are welcome</small></h5>
                            <ul>
                                <li><a href="examlogin">退出登录</a></li>
                            </ul>
                        </div>
                    </div>
                </li>
            </ul><!--headmenu-->
        </div>
    </div>

    <div class="leftpanel" style="margin-left: 0px;">

        <div class="leftmenu">
            <ul class="nav nav-tabs nav-stacked">
                <li class="nav-header">Navigation</li>

                <li class="dropdown"><a href=""><span class="iconfa-pencil"></span> 学生管理</a>
                    <ul>
                        <li class=""><a  href="studentadd">添加学生</a></li>
                        <li><a href="studentQuery">查询所有学生</a></li>
                    </ul>
                </li>
                <li class="dropdown active"><a href=""><span class="iconfa-briefcase"></span> 试题管理</a>
                    <ul>
                        <li class="dropdown"><a href=""><span class="iconfa-briefcase"></span>添加试题</a>
                            <ul>
                                <li><a href="xuanzesubjectadd">选择题</a></li>
                                <li><a href="tiankongsubjectadd">填空题</a></li>
                                <li><a href="panduansubjectadd">判断题</a></li>
                                <li><a href="wendasubjectadd">问答题</a></li>
                            </ul>
                        </li>

                        <li class="dropdown"><a href=""><span class="iconfa-briefcase"></span>查询所有试题</a>
                            <ul>
                                <li><a href="selectxuanze">选择题</a></li>
                                <li><a href="selecttiankong">填空题</a></li>
                                <li><a href="selectpanduan">判断题</a></li>
                                <li><a href="selectwenda">问答题</a></li>
                            </ul>
                        </li>
                        <li><a href="selectsubject">搜索试题</a></li>
                    </ul>
                </li>

            </ul>
        </div><!--leftmenu-->

    </div><!-- leftpanel -->
    <div class="rightpanel">
        
        <ul class="breadcrumbs">
            <li><a href="<%=path %>/teacher/teacher.jsp"><i class="iconfa-home"></i></a> <span class="separator"></span></li>
            <li><a href="studentQuery">学生管理</a> <span class="separator"></span></li>
            <li>查询所有学生</li>
            
            <li class="right">
                <a href="" data-toggle="dropdown" class="dropdown-toggle"><i class="icon-tint"></i> Color Skins</a>
                <ul class="dropdown-menu pull-right skin-color">
                    <li><a href="default">Default</a></li>
                    <li><a href="navyblue">Navy Blue</a></li>
                    <li><a href="palegreen">Pale Green</a></li>
                    <li><a href="red">Red</a></li>
                    <li><a href="green">Green</a></li>
                    <li><a href="brown">Brown</a></li>
                </ul>
            </li>
        </ul>
        
         <div class="maincontent" style="">
            <div class="maincontentinner">
            
                <div class="widget">
            <h4 class="widgettitle">根据班级查询学生</h4>
            <div class="widgetcontent">
                <form class="stdform" action="selectbyclass" method="post">
                      
                            <label>班级编号:</label>
                            <span class="field">
	                          	<select name="sclass" class="form-control">
                                    <option value="请选择" selected="selected">==请选择==</option>
		                          	<option value="移动云办公" >移动云办公</option>
		                          	<option value="会计信息化">会计信息化</option>
		                          	<option value="新媒体工程">新媒体工程</option>
	                           	</select>
                            </span>
                       
                        <p class="stdformbutton">
							<input class="btn btn-primary" type="submit" value="查询">
							<input class="btn btn-primary" type="reset" value="重置">
                        </p>
                    
                </form>
            </div><!--widgetcontent-->
            </div><!--widget-->
                
                <br /><br />
              
                <div >
                    <div >
                        <table>
                        <thead>
                        <tr>

                            <th class="head0">学生编号</th>
                            <th class="head1">所属班级</th>
                            <th class="head0">学生姓名</th>
                            <th class="head1">成绩</th>
                        </tr>
                        </thead>


                        <s:forEach items="${requestScope.sclass}" var="u">
                            <tr align="center">
                                <td>${u.studentID}</td>
                                <td>${u.sclass}</td>
                                <td>${u.studentName}</td>
                                <td>${u.result}</td>
                            </tr>
                        </s:forEach>
                        </table>
                    </div>
                    
                </div><!--footer-->
            
            </div><!--maincontentinner-->
        </div><!--maincontent-->

   </div><!--rightpanel-->
    
</div><!--mainwrapper-->

</body>
</html>
